package com.battcn.platform.controller.sys;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.battcn.framework.common.exception.BattcnException;
import com.battcn.framework.mybatis.page.DataGrid;
import com.battcn.platform.controller.BaseController;
import com.battcn.platform.pojo.po.sys.Hello;
import com.battcn.platform.service.sys.HelloService;
import com.github.pagehelper.PageInfo;

import springfox.documentation.annotations.ApiIgnore;

@Controller
@RequestMapping("/battcn/hello")//此处填写t_sys_menu的channel
@ApiIgnore//不加入swagger的扫描中去
public class HelloController extends BaseController{
	
	@Autowired
	HelloService helloService;

	@RequestMapping(value = "/list")
	public String list() throws BattcnException {
		return "battcn/hello/list";
	}

	@RequestMapping(value = "/query")
	@ResponseBody
	public PageInfo<Hello> query(DataGrid grid) {
		return this.helloService.listForDataGrid(grid);
	}

}

